<?php

namespace XWAM\Addon\PXCallSystem\Model;

/**
 * 历史菜单模型
 *
 * @author SoChishun <14507247@qq.com>
 * @since 1.0.0 <2015-7-7> SoChishun Added.
 */
class MenuHistoryModel extends \Think\Model {

    /**
     * 是否自动检测字段
     * @var boolean
     */
    protected  $autoCheckFields=false;
    
    public function add_code($code){
        $menus=D('Permission')->cache(true)->getField('id, code');
        $id=  array_search($code, $menus);
        cookie('');
    }
    public function remove_code($code){
        
    }
}
